from langchain.chat_models import init_chat_model

DEEPSEEK_API_KEY="sk-ccd1af6c1d6e4db28f206c1c52972b6e"
DEEPSEEK_URL="https://api.deepseek.com"

model = init_chat_model("deepseek-chat", model_provider="deepseek", api_key=DEEPSEEK_API_KEY, base_url=DEEPSEEK_URL)

a = model.invoke("Hello, world!")
print(a)